<div class="panel panel-default mt20">
  <div class="panel-body">
	<div class="row ">
      <div class="col-sm-3">
        <input type="text" class="form-control" ng-model="searchform.title" placeholder="标题">
      </div>
      <div class="col-sm-2">
        <select class="form-control" ng-model="searchform.status" >
          <option value="">全部</option>
          <option value="'1'">启用</option>
          <option value="'0'">停用</option>
        </select>
      </div>
      <div class="col-sm-2 pull-right">
        <button class="btn btn-block btn-success" ng-click="editInfo()">添加站点</button>
      </div>
      <div class="col-sm-2 pull-right">
        <button class="btn btn-block btn-info" ng-click="getSiteList(1)">立即搜索</button>
      </div>
	</div>
  </div>
</div>
<div class="panel panel-default mt20">
  <div class="panel-body">
    <table class="table table-condensed table-hover table-bordered">
      <thead>
        <tr>
		  <!-- <th class="col-md-2 text-center">头像</th> -->
          <th class="col-md-2 text-center">标题</th>
          <th class="col-md-3 text-center">详细地址</th>
          <th class="col-md-1 text-center">负责人</th>
          <th class="col-md-1 text-center">联系方式</th>
          <th class="col-md-1 text-center">状态</th>
          <th class="text-center" style="width: 13%">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="obj in sitelist">
		  <!-- <td class="">
		    <img src="./app/998mstp/img/a4.jpg" style="width: 50px" alt="..." class="img-circle">
		  </td> -->
          <td class="">{{obj.title}}</td>
          <td class="">{{obj.address}}</td>
          <td class="text-center">{{obj.contacts_name}}</td>
          <td class="text-center">{{obj.mobile}}</td>
          <td class="text-center">{{obj.status=='1'?'已启用':'已停用'}}</td>
          <td class="text-center">
            <button class="btn btn-primary btn-xs" ng-click="editInfo(obj)">编辑</button>
            <button class="btn btn-danger btn-xs" ng-click="delete(obj)">删除</button>
          </td>
        </tr>
      </tbody>
    </table>
    <div class="text-right">
	  <pagination total-items="totalItems" ng-model="currentPage" ng-change="getSiteList(currentPage)" 
	  previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页" max-size="5" rotate="false"
	  boundary-links="true" items-per-page="itemsPerPage" class="m-t-none m-b"> </pagination>
    </div>
  </div>
</div>